function AllReady() {
    const mstform = Ext.getCmp("KC_INKCGRK_Head")
    fpHidden()
    mstform.getItem("user_sfyfp").addListener('change', function () {//值发生变化后立即触发
        fpHidden()
    });
    mstform.on('dataready', function () {
        fpHidden()
    });
    // 发票隐藏
    function fpHidden() {
        const phid = mstform.getItem("user_sfyfp").getValue()
        let val = 2
        let hidden = false
        if (phid == '01') {
            val = 3
            hidden = true
        } else {
            val = 2
        }
        mstform.getItem("Tempflg").setValue(val)

        const hideKeys = ["user_fplx", "Invoiceno", "user_sfts",]
        hideKeys.forEach(item => {
            mstform.getItem(item).setVisible(hidden)
            if (item != 'user_sfts') {
                mstform.getItem(item).userSetMustInput(hidden)
            }
        })
    }
}